import {
    ViewStyle,
    TextStyle
} from 'react-native';

import {
    Direction
} from './../Modal';

export interface Button {
    text: string,
    style?: ViewStyle,
    onPress?: Function,
    textStyle?: TextStyle
}

export interface Props {
    title?: string;
    message?: string,
    buttons: Array<Button>
}

export interface AlertOpt {
    title?: string,
    message?: string,
    buttonText?: string,
    showClose?:boolean
}

export interface ConfirmOpt {
    title?: string,
    message?: string,
    confirmText?: string,
    cancelText?: string,
    showClose?:boolean
}

export interface ShowProps {
    fixed?:boolean,
    style?:ViewStyle,
    direction?:Direction,
    maskOpacity?:number,
    clickClose?:boolean,
    enableBack?:boolean
    backClose?:boolean,
    onClosed?:Function
}